package com.bsgogogo.dao;

import com.bsgogogo.entity.AdminInfo;
import com.bsgogogo.vo.AdminInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface AdminInfoDao extends Mapper<AdminInfo> {
    List<AdminInfoVo> findByName(@Param("name") String name);
    
    int checkRepeat(@Param("column")String column, @Param("value")String value, @Param("id")Long id);

    AdminInfoVo findByUsername(@Param("username")String username);

    Integer count();
}
